﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Model
{
    public class BSort
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        //[JsonIgnore]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }= DateTime.Now.Hour;
        /// <summary>
        /// 分类名称
        /// </summary>
        public string SortName { get; set; }
        /// <summary>
        /// 分类描述
        /// </summary>
        public string SortDesc { get; set; }
        /// <summary>
        /// 分类页面路径
        /// </summary>
        public string SortPath { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        private DateTime updatedAt = DateTime.Now;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedAt { get { return updatedAt; } set { updatedAt = value; } }

    }
}
